package com.order.common.exception;

import com.order.common.entiry.ResultCode;

public class CommonException extends RuntimeException {

    private ResultCode resultCode;

    public CommonException(ResultCode resultCode){
        super(resultCode.getMsg());
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode(){
        return resultCode;
    }
}
